package com.central.task.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.central.common.enums.TaskType;
import com.central.common.handler.ListLongToStringHandler;
import com.central.common.handler.ListStrToStringHandler;
import com.central.common.model.SuperEntity;
import com.central.common.model.SysUser;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.ArrayList;
import java.util.List;

import static com.baomidou.mybatisplus.annotation.FieldStrategy.NOT_NULL;

/**
 * @author Tindy
 * @date 2021/11/29
 * @describe
 */
@Data
@TableName(value = "task_defined",autoResultMap = true)
public class TaskDefined extends SuperEntity {
    private String name;
    private String description;
    private TaskType taskType;
    private Long proId;
    private String proName;
    @TableField(jdbcType = JdbcType.VARCHAR,typeHandler = ListStrToStringHandler.class,insertStrategy =NOT_NULL)
    private List<String> owners;

}
